# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
#   * Rearrange models' order
#   * Make sure each model has one field with primary_key=True
#   * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
#   * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
from django.db import models


class AuthGroup(models.Model):
    name = models.CharField(unique=True, max_length=150)

    class Meta:
        managed = False
        db_table = 'auth_group'


class AuthGroupPermissions(models.Model):
    group = models.ForeignKey(AuthGroup, models.DO_NOTHING)
    permission = models.ForeignKey('AuthPermission', models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'auth_group_permissions'
        unique_together = (('group', 'permission'),)


class AuthPermission(models.Model):
    content_type = models.ForeignKey('DjangoContentType', models.DO_NOTHING)
    codename = models.CharField(max_length=100)
    name = models.CharField(max_length=255)

    class Meta:
        managed = False
        db_table = 'auth_permission'
        unique_together = (('content_type', 'codename'),)


class DjangoContentType(models.Model):
    app_label = models.CharField(max_length=100)
    model = models.CharField(max_length=100)

    class Meta:
        managed = False
        db_table = 'django_content_type'
        unique_together = (('app_label', 'model'),)


class DjangoMigrations(models.Model):
    app = models.CharField(max_length=255)
    name = models.CharField(max_length=255)
    applied = models.DateTimeField()

    class Meta:
        managed = False
        db_table = 'django_migrations'


class DjangoSession(models.Model):
    session_key = models.CharField(primary_key=True, max_length=40)
    session_data = models.TextField()
    expire_date = models.DateTimeField()

    class Meta:
        managed = False
        db_table = 'django_session'


class LiftsAppCustomuser(models.Model):
    password = models.CharField(max_length=128)
    last_login = models.DateTimeField(blank=True, null=True)
    is_superuser = models.BooleanField()
    username = models.CharField(unique=True, max_length=150)
    first_name = models.CharField(max_length=150)
    last_name = models.CharField(max_length=150)
    email = models.CharField(max_length=254)
    is_staff = models.BooleanField()
    is_active = models.BooleanField()
    date_joined = models.DateTimeField()
    phone_number = models.CharField(max_length=30)
    second_name = models.CharField(max_length=30)

    class Meta:
        managed = False
        db_table = 'lifts_app_customuser'


class LiftsAppCustomuserFavoriteLifts(models.Model):
    customuser = models.ForeignKey(LiftsAppCustomuser, models.DO_NOTHING)
    lift = models.ForeignKey('LiftsAppLift', models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'lifts_app_customuser_favorite_lifts'
        unique_together = (('customuser', 'lift'),)


class LiftsAppCustomuserGroups(models.Model):
    customuser = models.ForeignKey(LiftsAppCustomuser, models.DO_NOTHING)
    group = models.ForeignKey(AuthGroup, models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'lifts_app_customuser_groups'
        unique_together = (('customuser', 'group'),)


class LiftsAppCustomuserUserPermissions(models.Model):
    customuser = models.ForeignKey(LiftsAppCustomuser, models.DO_NOTHING)
    permission = models.ForeignKey(AuthPermission, models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'lifts_app_customuser_user_permissions'
        unique_together = (('customuser', 'permission'),)


class LiftsAppFrequentlyUsedLifts(models.Model):
    count = models.BigIntegerField()
    created = models.DateTimeField()
    last_updated = models.DateTimeField()
    lift = models.ForeignKey('LiftsAppLift', models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'lifts_app_frequently_used_lifts'


class LiftsAppLift(models.Model):
    title = models.TextField(blank=True, null=True)
    departure = models.FloatField(blank=True, null=True)
    lifting_capacity = models.FloatField(blank=True, null=True)
    type = models.TextField(blank=True, null=True)
    move = models.TextField(blank=True, null=True)
    manufacturer = models.TextField(blank=True, null=True)
    country = models.TextField(blank=True, null=True)
    platform_floor_lift = models.FloatField(blank=True, null=True)
    type_of_drive = models.TextField(blank=True, null=True)
    last_updated = models.DateTimeField()
    vendor_code = models.CharField(max_length=150)
    is_booked = models.BooleanField()
    state = models.CharField(max_length=30)
    created = models.DateTimeField()
    price = models.FloatField()
    working_height = models.FloatField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'lifts_app_lift'


class LiftsAppLiftImages(models.Model):
    last_updated = models.DateTimeField()
    created = models.DateTimeField()
    image = models.CharField(max_length=100)
    lift = models.ForeignKey(LiftsAppLift, models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'lifts_app_lift_images'


class LiftsAppLiftInfo(models.Model):
    created = models.DateTimeField()
    description = models.TextField()
    last_updated = models.DateTimeField()
    lift = models.OneToOneField(LiftsAppLift, models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'lifts_app_lift_info'


class LiftsAppReport(models.Model):
    date = models.DateTimeField(blank=True, null=True)
    last_updated = models.DateTimeField()
    sales_amount = models.FloatField()
    created = models.DateTimeField()
    expenses = models.FloatField()
    frequently_used_lifts = models.ForeignKey(LiftsAppFrequentlyUsedLifts, models.DO_NOTHING)
    manager = models.ForeignKey(LiftsAppCustomuser, models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'lifts_app_report'


class LiftsAppReportRequests(models.Model):
    report = models.ForeignKey(LiftsAppReport, models.DO_NOTHING)
    requests = models.ForeignKey('LiftsAppRequests', models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'lifts_app_report_requests'
        unique_together = (('report', 'requests'),)


class LiftsAppRequests(models.Model):
    date_closed = models.DateTimeField(blank=True, null=True)
    price = models.FloatField()
    created = models.DateTimeField()
    date_booking = models.DateTimeField()
    last_updated = models.DateTimeField()
    customer = models.ForeignKey(LiftsAppCustomuser, models.DO_NOTHING)
    lift = models.ForeignKey(LiftsAppLift, models.DO_NOTHING)
    manager = models.ForeignKey(LiftsAppCustomuser, models.DO_NOTHING)
    status = models.ForeignKey('LiftsAppStatusRequest', models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'lifts_app_requests'


class LiftsAppRequestsReports(models.Model):
    requests = models.ForeignKey(LiftsAppRequests, models.DO_NOTHING)
    report = models.ForeignKey(LiftsAppReport, models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'lifts_app_requests_reports'
        unique_together = (('requests', 'report'),)


class LiftsAppStatusRequest(models.Model):
    last_updated = models.DateTimeField()
    name = models.CharField(max_length=50)
    created = models.DateTimeField()

    class Meta:
        managed = False
        db_table = 'lifts_app_status_request'
